package com.heima.mongo.comment.pojos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "movement")
public class Comment {
    private ObjectId commentId;
    private Integer userId;
    //文章id
    private Long entryId;
    //评论
    private String content;
    //点赞
    private Integer likes;
    //回复数量
    private Integer reply;
    //经度
    private String longitude;
    //纬度
    private String latitude;
    //地址
    private String address;
    //排序
    private String ord;
    //创建时间
    private Date createdTime;
    //修改时间
    private Date updatedTime;
    //评论点赞状态


}
